import Button from '../packages/Button/index.js'
import Select from '../packages/Select/index.js'

const components = [Button, Select]

const install = (Vue, options = {}) => {
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

export default {
  version: '0.0.1',
  install, // 全量
  Select,
  Button
}
